<h1><%= t('admin.category.show.title') %></h1>
<p>
	<%= t('activerecord.attributes.category.name') %>: 
	<%= @category.name %>
</p>
<p>
	<%= t('activerecord.attributes.category.description') %>: 
	<%= simple_format(@category.description) %>
</p>
<p>
	<%= t('activerecord.attributes.category.order_position') %>: 
	<%= @category.order_position %>
</p>
<p>
	<%= t('activerecord.attributes.created_at') %>: 
	<%= l(@category.created_at, format: :long) %>
</p>
<p>
	<%= t('activerecord.attributes.created_by') %>: 
	<%= id_to_user_link(@category.created_by) %>
</p>
<p>
	<%= t('activerecord.attributes.updated_at') %>: 
	<%= l(@category.updated_at, format: :long) %>
</p>
<p>
	<%= t('activerecord.attributes.updated_by') %>: 
	<%= id_to_user_link(@category.updated_by) %>
</p>

<% unless @category.parent.nil? %>
<p>	
	<%= t('activerecord.attributes.category.parent') %>:
	<%= link_to "#{@category.parent.name} (##{@category.parent.id})", [:admin, @category.parent] %>
</p>
<% end %>

<% if @category.subcategories.any?  %>
	<h2><%= t('admin.category.children') %>:</h2>
	<%= render @category.subcategories %>
<% end %>